//
// Created by User on 24-10-7.
//
#include "audio_encoder.h"
#include "general_encoder.h"
#include "media_packet.h"

#include <libavutil/rational.h>


namespace encoder
{
    audio_encoder::audio_encoder(general_encoder& encoder)
        : m_encoder(encoder)
    {
    }

    utils::media_packet audio_encoder::get_packet()
    {
        return this->m_encoder.get_packet();
    }

    const AVCodecParameters* audio_encoder::get_codec() const
    {
        return this->m_encoder.get_code_parameters();
    }

    AVRational audio_encoder::get_timebase() const
    {
        return this->m_encoder.get_timebase();
    }

    int audio_encoder::total_frames() const
    {
        return this->m_encoder.total_frame();
    }
}
